package com.exam.pojo;

/**
 * @author: 黄星
 * 自定义集成类  用来成绩管理方面使用
 */
public class StudentAndSubject {

	private Integer id;  //编号
	private Student student;  //学生信息
	private Subject subject;  //科目信息
	private Integer result;  //成绩

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Student getStudent() {
		return student;
	}

	public void setStudent(Student student) {
		this.student = student;
	}

	public Subject getSubject() {
		return subject;
	}

	public void setSubject(Subject subject) {
		this.subject = subject;
	}

	public Integer getResult() {
		return result;
	}

	public void setResult(Integer result) {
		this.result = result;
	}

	@Override
	public String toString() {
		return "StudentAndSubject{" + "id=" + id + ", student=" + student + ", subject=" + subject + ", result=" + result + '}';
	}
}
